package com.zxy.dao;

import cn.echo.annotation.PageX;
import com.zxy.model.Inventory;
import com.zxy.model.InventoryQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InventoryDao {

    @PageX
    Inventory select(InventoryQuery query);

    @PageX
    List<Inventory> selectList(InventoryQuery query);
    int insert(Inventory model);
    int update(Inventory record);

    int update(int id, int optionQty);

    Inventory selectById(Integer productId);
}
